<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户管理后台</title>
<script type="text/javascript" src="Public/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="Public/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="Public/js/lazyload.js"></script>
<script type="text/javascript" src="Public/artDialog/artDialog.source.js?skin=default" charset="utf-8"></script>
<script type="text/javascript" src="Public/js/jquery.ae.image.resize.min.js"></script>
<link rel="stylesheet" href="Public/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="theme/default/css/common.css">
<link rel="stylesheet" href="Public/css/homeindex.css">

  <!--[if lte IE 6]>
  <link rel="stylesheet" type="text/css" href="Public/bootstrap/css/bootstrap-ie6.css">
  <![endif]-->
  <!--[if lte IE 7]>
  <link rel="stylesheet" type="text/css" href="Public/bootstrap/css/ie.css">
  <![endif]-->
</head>

<body>
<include file="./template/default/Public/header-logined.html" />
 

    <div class="container main">
      <div class="row-fluid">
        <div class="span3">
          <include file="./template/default/Public/sidebar.html" />
        </div><!--/span-->
        <div class="content span9">
          
          <div class="well">
          	<div class="page-header"><h3>最近上传</h3></div>
            <script type="text/javascript">
			function LoadRecentPic(id){
				$("#"+id).show();
				$.ajax({
					url:"/index.php",
		type:"GET",
		data:"s=/Home/Albums/loadrecent/datetime/"+id+"/tp/"+new Date().getTime(),
		dataType:"json",
		success:function(json){
			var html = '';
			$("#pic_"+id).html("");
			$.each(json,function(dataIndex,data){
				html+='<a href="/index.php?s=/Home/Albums/PicEdit/id/'+data['id']+'"><img src="http://facesbaby.u.qiniudn.com/'+data['photo_path']+'?imageView/1/w/100/h/75" width="100" height="75"></a>';
			});
			$("#pic_"+id).html(html);
			
		}
					
					});
			}
			</script>
            <table class="table">
            <thead>
            	<tr>
                	<th>时间</th>
                    <th>相片张数</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="data" id="rs">
            
            <tr>
            	<td>
                {$rs['datetime']}
                </td>
            <td>{$rs['pcount']}</td>
            <td>
            <a onClick="LoadRecentPic('{$rs['datetime']}')" href="javascript:void(0)" class="button">查看</a>
            </td>
            </tr>
            <tr id="{$rs['datetime']}" style="display:none">
            	<td colspan="3"><div id="pic_{$rs['datetime']}"></div></td>
            </tr>
            
            </volist>
            </tbody>
            </table>
            
          </div><!--end well-->
         
        </div><!--/span-->
      </div><!--/row-->
      
      </div>

<include file="./template/default/Public/footer-logined.html" />



</body>
</html>